{include file='common/head'}
<body>
<div class="x-body">
    <form class="layui-form" method="post"  enctype="multipart/form-data">
		<div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>普通用户一天发布文章
            </label> 
            <div class="layui-input-inline">
                <select name="userwenzhang" id="jname"  style="width:96px; " lay-verify="required">
                    <option value="">请选择</option>
                    <option value="1" {if $rs['userwenzhang']=='1'}selected=selected{/if}>1</option>
                    <option value="2" {if $rs['userwenzhang']=='2'}selected=selected{/if}>2</option>
                    <option value="3" {if $rs['userwenzhang']=='3'}selected=selected{/if}>3</option>
                    <option value="4" {if $rs['userwenzhang']=='4'}selected=selected{/if}>4</option>
                    <option value="5" {if $rs['userwenzhang']=='5'}selected=selected{/if}>5</option>
                    <option value="6" {if $rs['userwenzhang']=='6'}selected=selected{/if}>6</option>
                    <option value="7" {if $rs['userwenzhang']=='7'}selected=selected{/if}>7</option>
                    <option value="99999" {if $rs['userwenzhang']=='99999'}selected=selected{/if}>无限制</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>会员用户一天发布文章
            </label>
            <div class="layui-input-inline">
                <select name="vipwenzhang" id="j"  style="width:96px; " lay-verify="required">
                    <option value="">请选择</option>
                    <option value="1" {if $rs['vipwenzhang']=='1'}selected=selected{/if}>1</option>
                    <option value="2" {if $rs['vipwenzhang']=='2'}selected=selected{/if}>2</option>
                    <option value="3" {if $rs['vipwenzhang']=='3'}selected=selected{/if}>3</option>
                    <option value="4" {if $rs['vipwenzhang']=='4'}selected=selected{/if}>4</option>
                    <option value="5" {if $rs['vipwenzhang']=='5'}selected=selected{/if}>5</option>
                    <option value="6" {if $rs['vipwenzhang']=='6'}selected=selected{/if}>6</option>
                    <option value="7" {if $rs['vipwenzhang']=='7'}selected=selected{/if}>7</option>
                    <option value="8" {if $rs['vipwenzhang']=='8'}selected=selected{/if}>8</option>
                    <option value="9" {if $rs['vipwenzhang']=='9'}selected=selected{/if}>9</option>
                    <option value="10" {if $rs['vipwenzhang']=='10'}selected=selected{/if}>10</option>
                    <option value="15" {if $rs['vipwenzhang']=='15'}selected=selected{/if}>15</option>
                    <option value="20" {if $rs['vipwenzhang']=='20'}selected=selected{/if}>20</option>
                    <option value="30" {if $rs['vipwenzhang']=='30'}selected=selected{/if}>30</option>
                    <option value="99999" {if $rs['vipwenzhang']=='99999'}selected=selected{/if}>无限制</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>普通用户一天拨号次数
            </label>
            <div class="layui-input-inline">
                <select name="userbohao" id=""  style="width:96px; " lay-verify="required">
                    <option value="">请选择</option>
                    <option value="1" {if $rs['userbohao']=='1'}selected=selected{/if}>1</option>
                    <option value="2" {if $rs['userbohao']=='2'}selected=selected{/if}>2</option>
                    <option value="3" {if $rs['userbohao']=='3'}selected=selected{/if}>3</option>
                    <option value="4" {if $rs['userbohao']=='4'}selected=selected{/if}>4</option>
                    <option value="5" {if $rs['userbohao']=='5'}selected=selected{/if}>5</option>
                    <option value="6" {if $rs['userbohao']=='6'}selected=selected{/if}>6</option>
                    <option value="7" {if $rs['userbohao']=='7'}selected=selected{/if}>7</option>
                    <option value="99999" {if $rs['userbohao']=='99999'}selected=selected{/if}>无限制</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>会员用户一天拨号次数
            </label>
            <div class="layui-input-inline">
                <select name="vipbohao" id="j"  style="width:96px; " lay-verify="required">
                    <option value="">请选择</option>
                    <option value="1" {if $rs['vipbohao']=='1'}selected=selected{/if}>1</option>
                    <option value="2" {if $rs['vipbohao']=='2'}selected=selected{/if}>2</option>
                    <option value="3" {if $rs['vipbohao']=='3'}selected=selected{/if}>3</option>
                    <option value="4" {if $rs['vipbohao']=='4'}selected=selected{/if}>4</option>
                    <option value="5" {if $rs['vipbohao']=='5'}selected=selected{/if}>5</option>
                    <option value="6" {if $rs['vipbohao']=='6'}selected=selected{/if}>6</option>
                    <option value="7" {if $rs['vipbohao']=='7'}selected=selected{/if}>7</option>
                    <option value="8" {if $rs['vipbohao']=='8'}selected=selected{/if}>8</option>
                    <option value="9" {if $rs['vipbohao']=='9'}selected=selected{/if}>9</option>
                    <option value="10" {if $rs['vipbohao']=='10'}selected=selected{/if}>10</option>
                    <option value="15" {if $rs['vipbohao']=='15'}selected=selected{/if}>15</option>
                    <option value="20" {if $rs['vipbohao']=='20'}selected=selected{/if}>20</option>
                    <option value="30" {if $rs['vipbohao']=='30'}selected=selected{/if}>30</option>
                    <option value="99999" {if $rs['vipbohao']=='99999'}selected=selected{/if}>无限制</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>普通用户一天转发次数
            </label>
            <div class="layui-input-inline">
                <select name="userzhuanfa" id="wj"  style="width:96px; " lay-verify="required">
                    <option value="">请选择</option>
                    <option value="1" {if $rs['userzhuanfa']=='1'}selected=selected{/if}>1</option>
                    <option value="2" {if $rs['userzhuanfa']=='2'}selected=selected{/if}>2</option>
                    <option value="3" {if $rs['userzhuanfa']=='3'}selected=selected{/if}>3</option>
                    <option value="4" {if $rs['userzhuanfa']=='4'}selected=selected{/if}>4</option>
                    <option value="5" {if $rs['userzhuanfa']=='5'}selected=selected{/if}>5</option>
                    <option value="6" {if $rs['userzhuanfa']=='6'}selected=selected{/if}>6</option>
                    <option value="7" {if $rs['userzhuanfa']=='7'}selected=selected{/if}>7</option>
                    <option value="99999" {if $rs['userzhuanfa']=='99999'}selected=selected{/if}>无限制</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>会员用户一天转发次数
            </label>
            <div class="layui-input-inline">
                <select name="vipzhuanfa" id="jws"  style="width:96px; " lay-verify="required">
                    <option value="">请选择</option>
                    <option value="1" {if $rs['vipzhuanfa']=='1'}selected=selected{/if}>1</option>
                    <option value="2" {if $rs['vipzhuanfa']=='2'}selected=selected{/if}>2</option>
                    <option value="3" {if $rs['vipzhuanfa']=='3'}selected=selected{/if}>3</option>
                    <option value="4" {if $rs['vipzhuanfa']=='4'}selected=selected{/if}>4</option>
                    <option value="5" {if $rs['vipzhuanfa']=='5'}selected=selected{/if}>5</option>
                    <option value="6" {if $rs['vipzhuanfa']=='6'}selected=selected{/if}>6</option>
                    <option value="7" {if $rs['vipzhuanfa']=='7'}selected=selected{/if}>7</option>
                    <option value="8" {if $rs['vipzhuanfa']=='8'}selected=selected{/if}>8</option>
                    <option value="9" {if $rs['vipzhuanfa']=='9'}selected=selected{/if}>9</option>
                    <option value="10" {if $rs['vipzhuanfa']=='10'}selected=selected{/if}>10</option>
                    <option value="15" {if $rs['vipzhuanfa']=='15'}selected=selected{/if}>15</option>
                    <option value="20" {if $rs['vipzhuanfa']=='20'}selected=selected{/if}>20</option>
                    <option value="30" {if $rs['vipzhuanfa']=='30'}selected=selected{/if}>30</option>
                    <option value="99999" {if $rs['vipzhuanfa']=='99999'}selected=selected{/if}>无限制</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="L_repass" class="layui-form-label">
            </label>
            <button  class="layui-btn" lay-filter="zhuanfaadd" lay-submit="">
               提交
            </button>
        </div>
    </form>
</div>
<script>
    layui.use(['form','layer'], function(){
        $ = layui.jquery;
        var form = layui.form
            ,layer = layui.layer;
        //监听提交
        form.on('submit(zhuanfaadd)', function(data){
            //console.log(data);
            var url="";
            $.ajax({
                type: "post",
                async:false,
                url: "{:url('index/xinxi/shezhi')}",
                data: data.field,
                dataType:'json',
                success:function (res) {
                    if(res==1)
                    {
                        layer.msg("设置成功！" );
                            //获得frame索引
                            //var index = parent.layer.getFrameIndex(window.name);
                            //关闭当前frame
                            //parent.layer.close(index);
                        /*setTimeout(function () {
                            window.parent.location.reload();//刷新父级窗口
                        }, 1000);*/
                        return false;
                    }
                    else {
                        layer.msg("设置失败！");
                    }

                }
            })
            return false;
        });


    });
</script>
</body>

</html>